package com.hziee.mail.dao;


import com.hziee.mail.model.ProductClassInfoEntity;
import com.hziee.mail.model.UserInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

/**
 * @author ZX
 */
public interface UserInfoRepository extends JpaRepository<UserInfoEntity, Integer>, CrudRepository<UserInfoEntity, Integer> {


    /**
     * 检查登陆
     *
     * @param phone
     * @param pwd
     * @return
     */
    UserInfoEntity findAllByPhoneAndPwd(String phone, String pwd);
}
